package com.demo.salary.transactionimplementation;

import com.demo.salary.abstracttransactions.ChangeEmployeeTransaction;
import com.demo.salary.payrolldomain.Employee;

public class ChangeAddressTransaction extends ChangeEmployeeTransaction {

    String address;
    public ChangeAddressTransaction(int empId,String address) {
        super(empId);
        this.address = address;
    }

    @Override
    public void change(Employee employee) {
        employee.setAddress(address);
    }
}
